//
//  TimeSpaceHistoryViewController.h
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 10/15/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Signal.h"
#import "Agency.h"
#import "SubSystem.h"
#import "TimingPattern.h"
#import "DynamicSignalLabel.h"
#import "GeometryCalculation.h"
#import "TimeSpaceHistoryView.h"
#import "CustomizedBarButtonItem.h"
#import "GPSEntity.h"
#import "GPSStatisticViewController.h"
@interface TimeSpaceHistoryViewController : UIViewController
<CLLocationManagerDelegate>
//@property (retain, nonatomic) IBOutlet UIScrollView *scrollView;

@property (retain,nonatomic) Signal *signal;
@property (retain,nonatomic) Agency *agency;
@property (retain,nonatomic) SubSystem *subSystem;
@property (retain,nonatomic) TimingPattern *timingPattern;
@property (retain,nonatomic) NSMutableArray *linkList;
//@property (nonatomic,retain) NSTimer * timer;
@property (retain,nonatomic) NSMutableArray * NSDynamicLabelArray;
@property (retain,nonatomic) NSMutableArray * EWDynamicLabelArray;
@property (retain,nonatomic) TimeSpaceHistoryView *timeSpaceView;
//@property (retain,nonatomic) TimeSpaceGPSView *timeSpaceGPSView;
@property (retain,nonatomic) NSMutableArray * GPSLocationList;
@property (retain,nonatomic) NSMutableArray *cycleTimerList;

//@property (nonatomic,retain) CLLocationManager *locationManager;
@property (nonatomic,retain) CLLocation * currentGPSLocation;
@property (nonatomic) int direction;
@property (nonatomic,retain) NSString * gpsRecordName;
@property (nonatomic,retain) UIView * contentView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil agency:(Agency *)agency subsystem:(SubSystem *)subsystem timingPattern:(TimingPattern *)timingPattern signal:(Signal *)signal direction:(int)direction GPSRecordName:(NSString *)GPSRecordName;

@end
